package com.shdaow.shadow_lib_test;

import com.shadow.shadow_lib.assistmove.BaseMoveListener;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;

public class MainActivity extends Activity implements OnClickListener {
	BaseMoveListener baseMoveListener;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		findViewById(R.id.btn1).setOnClickListener(this);
		findViewById(R.id.btn2).setOnClickListener(this);
		findViewById(R.id.btn3).setOnClickListener(this);
		findViewById(R.id.btn4).setOnClickListener(this);
		findViewById(R.id.btn5).setOnClickListener(this);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.activity_main, menu);
		return true;
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btn1:
			startActivity(new Intent(this, TestBitmap.class));
			break;
		case R.id.btn2:
			startActivity(new Intent(this, TestTecentWeibo.class));
			break;
		case R.id.btn3:
			startActivity(new Intent(this, TestMoveView.class));
			break;
		case R.id.btn4:
			startActivity(new Intent(this, TestBitmapImageView.class));
			break;
		case R.id.btn5:
			startActivity(new Intent(this, TestImageDownLoad.class));
			break;
		}
	}

}
